@(ads: List[Advertisement])

@import helper._
@import play.api.Play.current

@main(ads.size()+" - Advertisement(s)") {
    
    <h3>myAdvertisement(s)</h3>
  	<fieldset>		
			@for(ad <- ads){
				<div class="column" style="max-width:350px; margin:0 auto; padding: 7px;">
				<h5>@ad.getName()</h5>
				<a href='/advertisement/info/@ad.getId()'>
					<div  style="height:254px;"><img class="img-responsive" src="@routes.Assets.at("images/advertisement/")@ad.getPhoto()"/></div>
				</a>
				<p>Price: @ad.getPrice() HUF </p><br />
				<p>Description: <a href='/advertisement/info/@ad.getId()'>-></a></p>
			</div>
			}
		</fieldset>
		<hr />
}